﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>自动发起</title>
    <link href="../../../Comm/Style/Table0.css" rel="stylesheet" type="text/css" />
    <link href="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="../../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
    <script src="../../../Scripts/easyUI145/jquery.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/easyUI145/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
    <script src="../../../Scripts/config.js" type="text/javascript"></script>
    <script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
    <script src="../../../Comm/Gener.js" type="text/javascript"></script>
    <script src="DDLBar.js" type="text/javascript"></script>
    <script src="../../../Scripts/EasyUIUtility.js"></script>
    <script src="../../CCFlowEnum.js" type="text/javascript"></script>
    <link href="../../../Style/skin/adminfont/iconfont.css" rel="stylesheet" />
    <link href="../../../Style/skin/css/Default.css" rel="stylesheet" />
    <script type="text/javascript">
        $(function () {

            //初始化下拉框.
            InitBar(AutoStart.ByTineData);

            //获取节点属性.
            var flowNo = GetQueryString("FK_Flow");

            var flow = new Entity("BP.WF.Flow", flowNo);
            //批量为复制.
            if (flow.FlowRunWay == AutoStart.ByTineData) {
                GenerFullAllCtrlsVal(flow);
            }

        });
        function SQLSetting() {
            var flowNo = GetQueryString("FK_Flow");
            var url = "../../FoolFormDesigner/MapExt/PageLoadFullAutoStart.htm?FK_Flow=" + flowNo;
            SetHref(url);
        }
        function Save() {

            //更新节点表单类型.
            var flowNo = GetQueryString("FK_Flow");
            var flow = new Entity("BP.WF.Flow", flowNo);
            flow.FlowRunWay = AutoStart.ByTineData;
            flow.CopyURL();  //从url里面copy数据.
            flow.CopyForm(); //从from里面copy数据.
            if (flow.Update() == 0)
                flow.Insert();

            Reload();
        }
    </script>
</head>

<body>
    <div id="bar">
    </div>

    <fieldset>
        <legend> 数据集按时启动</legend>

        <ul>
            <li> 设置开始节点表单的主表从表的数据源。 </li>
            <li> 按照数据源启动SQL。 </li>
            <li> 详情点击下面链接进入设置页面。 </li>
        </ul>

        <br />
        <h3> <a href="javascript:SQLSetting()">设置要启动流程的数据源SQL</a></h3>

        <!--<textarea type=text style="width:95%" id="TB_SQL" name="TB_SQL"></textarea>-->
    </fieldset>

</body>
</html>
